#ifndef  __LL_ADC_H
#define  __LL_ADC_H


#define ADC_CHANNEL_NUM		8

typedef struct
{
	unsigned short buf[ADC_CHANNEL_NUM];
	unsigned short value[8];
}ADResultTypedef;
extern ADResultTypedef ADReg;

void EnableAdcDMA( void );
void AdcSampleAverageCalculate( void );
unsigned short AverageFilter( unsigned short *buf,unsigned char len );
unsigned short MiddleValueFiter( unsigned short *buf,unsigned char len );
void GetAdcValue( void );


#endif
